import request from '@/utils/request'

// 查询通用机场附件列表
export function listGapattach(query) {
  return request({
    url: '/baseinfo/gapattach/list',
    method: 'get',
    params: query
  })
}

// 查询通用机场附件详细
export function getGapattach(gapattachid) {
  return request({
    url: '/baseinfo/gapattach/' + gapattachid,
    method: 'get'
  })
}

// 新增通用机场附件
export function addGapattach(data) {
  return request({
    url: '/baseinfo/gapattach',
    method: 'post',
    data: data
  })
}

// 修改通用机场附件
export function updateGapattach(data) {
  return request({
    url: '/baseinfo/gapattach',
    method: 'put',
    data: data
  })
}

// 删除通用机场附件
export function delGapattach(gapattachid) {
  return request({
    url: '/baseinfo/gapattach/' + gapattachid,
    method: 'delete'
  })
}
